#if($msg)
<script>
alert('$!msg');</script>
#end

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="TurBlog">
<meta name="description" content="TurBlog">
<title>$!info.title</title>
<link href="/css/admin.css" rel="stylesheet" type="text/css">
<script>
function doSave()
{
if(doCheck())
{
if(EditForm.cid.value!="")EditForm.parameter.value="update";
EditForm.submit();
}
}

function doCheck()
{
if(EditForm.title.value=="")
{
alert("栏目标题不能为空！");
EditForm.title.focus();
return false;
}

return true;
}

function newXMLHttpRequest() {
  var xmlreq = false;
  if (window.XMLHttpRequest) { 
    xmlreq = new XMLHttpRequest();
  } else if (window.ActiveXObject) {    
    try {
      // 尝试按新版InternetExplorer方法创建
      xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e1) {   
      try {
        xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
     
      }
    }
  }
  return xmlreq;
}
function choiceDir(v)
{
if(v.value!=""){
 var req = newXMLHttpRequest();
  req.onreadystatechange = doChoiceCity(req);   
  req.open("POST", "/blogCircleDir.do?parameter=choice&fatherDir="+v, true); 
  req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  req.send("");
  }
}

function doChoiceDir(req) {  
return function () {
    if ((req.readyState==4) && (req.status == 200)) {       
		var objXMLDoc=new ActiveXObject("Microsoft.XMLDOM");	
        objXMLDoc.loadXML(req.responseText);		
		var data=objXMLDoc.selectNodes("//root/data");
		EditForm.dirSn.options.length=0;
		EditForm.dirSn.options[0]=new Option("","");
		for(var i=0;i<data.length;i++)
		{
		var op=new Option(data[i].getAttribute("dirName"),data[i].getAttribute("cid"));
		EditForm.dirSn.options[i+1]=op;
		}
      }   
 }
  }
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="96%" height="34"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="middle"><table width="53%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="10%" valign="bottom"><img src="#if ($dir.tagImg) $dir.tagImg #else /images/system/winzip.jpg #end" width="32" height="32" /></td>
        <td width="90%" valign="bottom" class="titletxt"><strong>博客圈子信息编辑</strong></td>
      </tr>
    </table></td>
    <td width="100">&nbsp;</td>
    <td width="120">&nbsp;</td>
  </tr>
</table>
<br>
<form name="EditForm" method="post" action="/blogCircle.do">
 <input type="hidden" name="parameter" value="saveCircle">
 <input type="hidden" name="cid"   value="$!cid">
 ##<input name="username" type="hidden" id="username"   value="$!blog.username">
 <input name="username" type="hidden" id="username"   value="$!blog.username">
 <!--<input name="onwerNick" type="hidden" id="onwerNick"   value="$!blog.username">-->
 <input name="inputuser" type="hidden" id="inputuser"   value="$!blog.username">	
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8E8E8">
  <tr bgcolor="#FFFFFF"> 
    <td height="29" align="center"><div align="center">圈子名称：</div></td>
    <td> <input name="title" type="text" class="input3" id="ti" value="$!title" size="40"> 
      <span class="text-red4"><font color="red">*</font>(频道的中文名)不超过20字</span></td>
  </tr>
  <tr>
      <td height="29" bgcolor="#FFFFFF"> <div align="center">子标题： </div></td>
      <td bgcolor="#FFFFFF"><input name="subtitle" type="text" id="subtitle" value="$!subtitle">
      <font color="red">*</font> </td>
    </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="29" align="center">域&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
    <td><input name="domain" type="text" id="domain" value="$!domain">
      <font color="red">*</font></td>
  </tr>
   <tr bgcolor="#FFFFFF"> 
      <td height="29" align="center">圈子类型：</td>
      <td>
        <select name="bigclass" id="bigclass">
		  $!TagUtil.options($circleDirService.queryBlogCircleDir().result,"cid","title",$cid)
		  </select>
	    </td>
  </tr>
  <!--<tr bgcolor="#FFFFFF"> 
    <td height="30" align="center">访问权限：</td>
    <td><INPUT type="radio" CHECKED value="1" name="right">
      公开（所有人都能浏览）  
        <INPUT type="radio" value="0" name="right">
      私密（只有圈友才能浏览） </td>
    </tr>
	--><tr>
      <td height="29" bgcolor="#FFFFFF"> <div align="center">标志图片：</div></td>
      <td bgcolor="#FFFFFF"><input name="tagImg" type="text" id="tagImg" value="$!tagImg">      </td>
    </tr>
	  <tr>
      <td height="29" bgcolor="#FFFFFF"> <div align="center">Email：</div></td>
      <td bgcolor="#FFFFFF"><input name="email" type="text" id="email" value="$!email">
        <font color="red">*</font></td>
    </tr>
    <tr>
      <td height="29" bgcolor="#FFFFFF"> <div align="center">回复Email：</div></td>
      <td bgcolor="#FFFFFF"><input name="replyEmail" type="text" id="replyEmail" value="$!replyEmail">      </td>
    </tr>
  <tr bgcolor="#FFFFFF">
    <td height="30" align="center">圈子简介：</td>
    <td><textarea name="intro" cols="3" id="intro" style="width:80%">$!intro</textarea></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="30">&nbsp;</td>
    <td><input type="button" name="Submit" value="保存" onClick="doSave()">
　
  <input type="reset" name="Submit23" value="重置">
  　
  <input type="reset" name="Submit22" value="返回" onClick="history.go(-1);"></td>
  </tr>
</table>
</form>

</td>
</tr>
</table>
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end